###out:src/main/java/${config.packageName?replace(".","/")}/entity/${root.beanName}.java
package ${config.packageName}.entity;

import java.util.Date;
import java.math.BigDecimal;
import com.zzb.framework.autodoc.annotation.AutoDocField;
import com.zzb.framework.common.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
* ${root.tableComment} 实体类
*/
@Table(name = "${root.tableName}")
@Entity
public class ${root.beanName} extends BaseEntity {
    <#list root.tableColumns as column><#if column.columnName != 'id' && column.columnName != 'create_time' && column.columnName != 'creator'  && column.columnName != 'update_time'  && column.columnName != 'updater'  && column.columnName != 'activate'>
    @Column(name = "${column.columnName}")
    @AutoDocField(value = "${column.columnComment}")
    private ${column.propertyType} ${column.propertyName}; //${column.columnComment}
    </#if></#list>

    /*----------------------get set 方法----------------------*/
    <#list root.tableColumns as column><#if column.columnName != 'id' && column.columnName != 'create_time' && column.columnName != 'creator'  && column.columnName != 'update_time'  && column.columnName != 'updater'  && column.columnName != 'activate'>
    public ${column.propertyType} get${(column.propertyName)?cap_first}() {return ${column.propertyName};}
    public void set${(column.propertyName)?cap_first}(${column.propertyType} ${column.propertyName}){<#if column.propertyType == 'String'>this.${column.propertyName} = ${column.propertyName} == null ? null : ${column.propertyName}.trim();<#else >this.${column.propertyName} = ${column.propertyName};</#if>}
    </#if></#list>
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "${root.beanName}{" +
        <#list root.tableColumns as column>
        "${column.propertyName}='" + get${column.propertyName?cap_first}() + '\'' + <#if column_has_next>',' + </#if>
        </#list>
        '}';
    }
}